<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script>window.g_config={appId:4002};</script>


	<link href="http://www.taobao.com/favicon.ico" rel="shortcut icon" type="image/x-icon">
	<!-- S GLOBAL CSS -->
<link rel="stylesheet" href="global-min.css">
<link rel="stylesheet" href="restaurant.css">
<link rel="stylesheet" href="http://a.tbcdn.cn//??apps/takeout/header/css/header.css?t=20140307.css">
<!-- S GLOBAL CSS --> 
	<link rel="stylesheet" href="http://a.tbcdn.cn/??tbsp/tbsp.css,apps/hesper/tmse/footer.css" />
	<!--[if IE 6]><script src="http://a.tbcdn.cn/p/market/util/noie6.js" charset="utf-8"></script><![endif]-->

<link rel="stylesheet" href="http://a.tbcdn.cn/apps/lifeplacelistweb/??/css/common.css,css/coupon.css,css/crumbs.css,css/list_v2013.css,css/pagination.css,css/map.css,css/tuan.css,css/sidebar.css?t=20120720.css">

<!-- S GLOBAL JS -->
<script src="http://a.tbcdn.cn//s/kissy/1.2.0/kissy-min.js"></script>
<script src="http://g.tbcdn.cn/tb/global/3.1.5/global-min.js"></script>
<script src="http://a.tbcdn.cn/??apps/takeout/header/js/header.js?t=20140307.js"></script>
<!-- E GLOBAL JS -->

<script type="text/javascript" src="${pageContext.request.contextPath}/admin/jquery-1.11.0.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		
		var flag=true;
		$("#ckbAll").click(function(){
			//alert($(":input:checkbox:checked:not(#ckbAll)").size());
			if(flag){
				$(":input:checkbox").prop("checked","checked")
				flag=false;
			}else{
				$(":input:checkbox").removeAttr("checked")
				flag=true;
			}
		});
		$("#deleteAll").click(function(){
			var result="";
			var count=$(":input:checkbox:checked:not(#ckbAll)").size();
			if(count==0){
				alert("请选择左边的复选框！");
				return;
			}
			$(":input:checkbox:checked:not(#ckbAll)").each(function(){
				var value=$(this).prop("value");
				//result +="id="+value+"&";
				result += "id=" + value + "&";
			});
			result=result.substring(0, result.length-1);
			var flag=window.confirm("您确定要删除这些选项？");
			if(flag){
				window.location.href="${pageContext.request.contextPath}/DeleteStudAllServlet?"+result+"&currentPage="+${pager.currentPage};
			}
		});
		
	});
</script>
</head>
<body>
	<div><h2 style="color:#ff0000;">点点外卖</h2></div>
	<div
		style="border-bottom-color: #09C; border-left-style: none; border-bottom-style: solid; border-right-style: none; border-top-style: none; border-left-width: 0px; border-bottom-width: 1px; border-right-width: 0px; border-top-width: 0px;">
		<table width="50%">
			<tr>
				<td>&nbsp;&nbsp;欢迎您，${buyer.bname} &nbsp;&nbsp;<a
					href="${pageContext.request.contextPath }/login.jsp">注销</a>
				</td>
			</tr>
		</table>
	</div>
		<c:choose>
    	<c:when test="${empty pager} ">
    		<tr>
    			
    		</tr>
    	</c:when>
    	<c:otherwise>
    		 <c:forEach items="${pager.data}" var="buyer">
    		
    		<div class="mod">
								<div class="items">
					<div class="list"  id="placeitems">
													<ul>
																	<li class="clearfix place-item" num=1>
																				
										<div class="item-inner clearfix">
											
										<div class="photo" data-spm="1000248">
																							<a target="_blank" href="http://dd.taobao.com/detail.htm?localstoreId=418cccd65c2942e0af4f581e7eded4d6" >
																							<span>						       
													<img src="http://gdd2.alicdn.com/L1/76/505357415/4b8ad5e65ec04b76a84fa2fa9daf593a_160x160.jpg" alt="神田川日式拉面(世贸丽晶店)">
												</span>
												<span class="index" name="id">${buyer.rid }</span>
											</a>
										</div>
										<div class="info">
											<div class="clearfix" data-spm="1000256">
																									<a target="_blank" href="http://dd.taobao.com/detail.htm?localstoreId=418cccd65c2942e0af4f581e7eded4d6" class="name">
																									${buyer.rname }
												</a>
																								<a  href="http://list.bendi.taobao.com/hangzhou/list--q-%C9%F1%CC%EF%B4%A8%C8%D5%CA%BD%C0%AD%C3%E6--isfd-1" class=" branch"><em>分店</em></a>
																																					<a target="_blank" href="http://dd.taobao.com/detail.htm?localstoreId=418cccd65c2942e0af4f581e7eded4d6" >
														<img src="http://img03.taobaocdn.com/tps/i3/T1wEaPXq8dXXcKFhzf-39-14.gif">
													</a>
																																				    												<a target="_blank" href="http://waimai.taobao.com/shop_detail.htm?shopid=839&amp;city=330100" >
    													<img src="http://img02.taobaocdn.com/tps/i2/T1IZnfXedqXXcVIxzf-39-14.png" alt="">
    												</a>
																								
											</div>
											<div class="more-info clearfix">
    											<div class="place-tag">
													    													<div class="pingfen">
    														                                                               <span><label>服务:</label><em>5</em></span>
                                                			                                                               <span><label>口味:</label><em>5</em></span>
                                                			                                                               <span><label>环境:</label><em>5</em></span>
                                                			                                                               <span><label>性价比:</label><em>5</em></span>
                                                			    													</div>
																										<p><span class="place">地址:</span>${buyer.rsite }</p>
													
													    													<div class="tags" data-spm="1000249">
    														<span class="tag">标签:</span>
    														<p>
    														    															<a href="http://list.bendi.taobao.com/hangzhou/list--q-%D5%D0%C5%C6%EB%E0%B9%C7%C0%AD%C3%E6">招牌豚骨拉面</a>
    														    															<a href="http://list.bendi.taobao.com/hangzhou/list--q-%D1%FE%D6%F9%B8%DF%B2%CB%C0%AD%C3%E6">瑶柱高菜拉面</a>
    														    															<a href="http://list.bendi.taobao.com/hangzhou/list--q-%B0%C2%B6%FB%C1%BC%BF%BE%B3%E1%D6%D0">奥尔良烤翅中</a>
    														    														</p>
    													</div>
																										<p data-spm="1000252">
    													     													     													 													</p>

												</div>
												
												    												                                                    <div class="price">
    													<span class="g_price g_price-highlight" style="font-size:12px;">
        													<span style="color:#FD7320">&yen;</span>
        													<strong style="background:none;font-size:12px;color:#FD7320;padding:0px;">22</strong>
    													</span>
    												</div>
    												    												<div class="dp">
    													    														<p data-spm="1000250">
    														好评：
    														<a target="_blank" href="http://detail.bendi.taobao.com/store/detail--id-418cccd65c2942e0af4f581e7eded4d6"><em>98%</em></a>(<a href="http://detail.bendi.taobao.com/store/detail--id-418cccd65c2942e0af4f581e7eded4d6" target="_blank">1563</a>)
    														</p>
																																											<!--点菜按钮-->
															<div class="orderDishes_btn"><a href="${pageContext.request.contextPath }/RestaurantMessageServlet?id=${buyer.rid}" target="_blank">点&nbsp;&nbsp;&nbsp;菜 </a></div>
															<input type="hidden" name="id" value="${buyer.rid}"/>
														    												</div>
																								
											</div>
										</div>
										
										</div>
    		
    		
	    	
    </c:forEach>
    	</c:otherwise>
       </c:choose>
       
		<tr align="center">
			<td colspan="2">
			${pager.currentPage }页/共${pager.totalPage }页 &nbsp;&nbsp;
            <a href="${pageContext.request.contextPath }/RestaurantPageServlet?currentPage=1">首页</a> &nbsp;&nbsp;
            <c:choose>
            	<c:when test="${pager.currentPage - 1 >= 1}">
            		<a href="${pageContext.request.contextPath }/RestaurantPageServlet?currentPage=${pager.currentPage - 1}">上一页</a> &nbsp;&nbsp;
            	</c:when>
            	<c:otherwise>
            		<font color="#ff0000">上一页</font>
            	</c:otherwise>
            </c:choose>
             <c:choose>
            	<c:when test="${pager.currentPage + 1 <= pager.totalPage}">
            		<a href="${pageContext.request.contextPath }/RestaurantPageServlet?currentPage=${pager.currentPage + 1}">下一页</a> &nbsp;&nbsp;
            	</c:when>
            	<c:otherwise>
            		<font color="#ff0000">下一页</font>
            	</c:otherwise>
            </c:choose>
            <a href="${pageContext.request.contextPath }/RestaurantPageServlet?currentPage=${pager.totalPage}">最后一页</a> &nbsp;&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>
